<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 基础样式 -->
    <link rel="stylesheet" href="/css/base.css">
    <!-- 插件 -->
    <link rel="stylesheet" href="/lib/layui-v2.7.5/css/layui.css">
    <link rel="stylesheet" href="/lib/cropper/cropper.min.css">
    <!-- 字体图标样式 -->
    <link rel="stylesheet" href="/iconfont/iconfont.css">
    <!-- 自己的css -->
    <link rel="stylesheet" href="/pages/personal/avatar/avatar.css">
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">更换头像</div>
        <div class="layui-card-body">
            <!-- 上面的大盒子 -->
            <div class="vatar-conatiner">
                <!-- 左边大图片 -->
                <div class="left">
                    <img src="/images/sample.jpg" alt="" id="avatar_big_img">
                </div>
                <!-- 右边预览图片 -->
                <div class="right">
                    <div class="top">
                        <div class="img" id="preview_img_100"></div>
                        <p>100x100</p>
                    </div>
                    <div class="bottom">
                        <div class="img" id="preview_img_50"></div>
                        <p>50x50</p>
                    </div>
                </div>
            </div>
            <!-- 按钮 -->
            <div class="btn-box">
                <input type="file" style="display:none;" id="input_file" accept="image/png,image/jpeg">
                <button type="button" class="layui-btn" id="select_img">上传</button>
                <button type="button" class="layui-btn layui-btn-danger" id="submit">确定</button>
            </div>
        </div>
    </div>

    <!-- 引入jQuer -->
    <script src="/lib/jquery-3.6.0.min.js"></script>
    <!-- 插件layui -->
    <script src="/lib/layui-v2.7.5/layui.js"></script>
    <script src="/lib/cropper/cropper.min.js"></script>
    <script src="/lib/lodash.js"></script>
    <!-- ajax -->
    <script src="/lib/axios.min.js"></script>
    <!-- 公共js -->
    <script src="/js/apiBase.js"></script>
    <!-- 自己的js -->
    <script src="/pages/personal/avatar/avatar.js"></script>
</body>

</html>